package com.example.demo.service;

import com.example.demo.entity.OrderEntity;
import com.example.demo.entity.ProductSkuEntity;
import com.mybatisflex.core.service.IService;

import java.util.List;
import java.util.Optional;

public interface OrderService extends IService<OrderEntity> {
    List<OrderEntity> findAll();
    Optional<OrderEntity> findById(Long id);
    OrderEntity update(Long id, OrderEntity order);
    void deleteById(Long id);
    Optional<OrderEntity> findByOrderNumber(String orderNumber);
    List<OrderEntity> findByUserId(Long userId);
    List<OrderEntity> findByStatus(String status);
}